<?php
   require_once ("core/Database.class.php");
require_once ("core/User.class.php");
function CreateUser($userC) {
    $db = new DataBase();
    $db->connect();
	$call = "call UserCreate('".$userC->get_username()."','".$userC->get_password()."','".$userC->get_pwdsalt()."','".$userC->get_email()."',".$userC->get_rank().",".$userC->get_actkey().",".$userC->get_packageid().",".$userC->get_datereg().",".$userC->get_expdate().")";
    $db->query($call);
    $db->close();
    
}
?>
